﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Brjostagjof.Models.NewsArticleViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Brjóstagjöf - Skrifa Frétt
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h1>Skrifa nýja frétt</h1>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
            
            <% Html.RenderPartial("PartialViews/FrettaGreinInput"); %>
            <%: Html.HiddenFor(model => model.newsArticle.InserterID, new { @Value = Page.User.Identity.Name }) %>

    <% } %>

    <div>
        <%: Html.ActionLink("Til Baka", "Frettir") %>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Actions" runat="server" >
    <%Html.RenderPartial("PartialViews/Actions", "Frett"); %>
</asp:Content>
